/**
 * Created by commy on 2015/5/1.
 */
var mongoose = require('mongoose');
var Schema = mongoose.Schema;
var ObjectId = Schema.Types.ObjectId;

var ClothesSchema = new Schema({
    pic_url:String,
    optime:Number,
    price:Number,
    season:Number,
    category:{type:ObjectId,ref:'Category'},
    user:{type:ObjectId,ref:'User'}
});

mongoose.model('Clothes',ClothesSchema);